home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
basic
/
ace24dist.lha
/
ace24.lha
/
utils
/
ab2ascii-1.3
/
examples
/
test
(
.txt
)
< prev
Wrap
AmigaBASIC Source Code
|
1996-09-11
|
1KB
|
43 lines
REM This is a remark beginning with a REM statement
' This remark has only a leading tick
CLS : REM CLS : REM ...
CLS ' CLS ' ...
' This program text should follow 2 remark lines and 1 empty line
:' 10 PRINT "hallo" ( :' remark )
:REM 20 GOTO 10 ( :REM remark )
10 PRINT "hallo"
20 GOTO 10
REM a loooooong line
PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT :PRINT
PRINT "eins""zwei" "drei";
' breaking strings across lines
bug$ = "buggy""
string"
GOSUB NonExistantSubroutine
' 65529 is the upper limit for a line number on the LHS
65529 GOTO 10
' The RHS in fact does not matter (AmigaBASIC will split it)
6553 0 GOTO 65540
9999 GOTO 9999999999999
SUB routine STATIC
' while loops
WHILE i>0 : i=i-1 : WEND
WHILE NOT i>0
i=1+1
WEND
END SUB